package com.neusoft.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neusoft.dto.DeptAddDto;
import com.neusoft.dto.DeptCondition;
import com.neusoft.utils.ResponseCode;
import com.neusoft.utils.ServerResponse;
import com.neusoft.vo.DeptBaseVo;
import com.neusoft.vo.DeptEmpFinVo;
import com.neusoft.vo.DeptListVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface DeptService {
//    IPage<DeptListVo> getDeptList(Integer pageNum, Integer pageSize);
    IPage<DeptListVo> getDeptCondition(DeptCondition deptCondition, Integer pageNum, Integer pageSize);
    DeptBaseVo getDeptById(Integer id);
    List<DeptEmpFinVo> getDeptEmpById(Integer id);

    ResponseCode updateDeptStatus(Integer id);
    ServerResponse<?> addDept(DeptAddDto deptAddDto);
    ServerResponse<?> updateDept(Integer id, DeptAddDto dept);
}
